package org.gxuwz.core.service.Impl;

import java.util.List;

import org.gxuwz.core.dao.IAreaDao;
import org.gxuwz.core.dao.IInstitutionDao;
import org.gxuwz.core.entity.TInstitution;
import org.gxuwz.core.service.IAreaService;
import org.gxuwz.core.service.IInstitutionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("InstitutionService")
public class InstitutionService implements IInstitutionService{
	
	@Autowired
	IInstitutionDao instDao;

	@Override
	public void addInstitutionDao(TInstitution inst) {
		instDao.addInstitution(inst);		
	}

	@Override
	public List<TInstitution> getAll(String agenname, String agencode) {
		// TODO Auto-generated method stub
		return instDao.getAll(agencode, agenname);
	}

	@Override
	public TInstitution getByAgenName(String agenname) {
		// TODO Auto-generated method stub
		return instDao.getByAgenName(agenname);
	}

	@Override
	public void update(TInstitution inst) {
		// TODO Auto-generated method stub
		instDao.update(inst);
	}

	@Override
	public void delete(TInstitution inst) {
		// TODO Auto-generated method stub
		instDao.delete(inst);
	}

}
